<?php include "../../share/head.html" ?>
<script type="text/javascript">
function showtime(a,b){
	c=b.toString();
	document.getElementById(a).innerHTML = c;
}

function check(a,c){
	var arr = a;
	var ett = c + "-et";
	var stt = c + "-st";
	var btnn = c + "-btn";
	var lab = c + "-label";
	var st = document.getElementById(stt).value;
	var et = document.getElementById(ett).value;
	var btn = document.getElementById(btnn);
	st = Number(st);
	et = Number(et);
	if(st==0 || et==0){
		return false;
	}
	if(et<st){
		document.getElementById(lab).innerHTML = "时间不符合规定";
		btn.disabled= "disabled";
	}
	else{
		if(a.length == 0){
			btn.disabled= false;
			document.getElementById(lab).innerHTML = "时间允许！";
			return false;
		}
		for (i = 0; i < arr.length; i=i+2){
			if(et>arr[i+1] && st<arr[i]){
				document.getElementById(lab).innerHTML = "时间不符合规定";
				btn.disabled= "disabled";
				break;
			}
			else{
				document.getElementById(lab).innerHTML = "时间允许！";
				btn.disabled= false;
				
			}
		}
	}
}

function getQueryVariable(variable)
{
       var query = window.location.search.substring(1);
       var vars = query.split("&");
       for (var i=0;i<vars.length;i++) {
               var pair = vars[i].split("=");
               if(pair[0] == variable){return pair[1];}
       }
       return(false);
}

function show()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
var url="../../actions/admin/show_cr.php?cs="+getQueryVariable("cs");

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("cr").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET",url,true);
xmlhttp.send("cs=1");
}

</script>
<body onload="show()">

<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<?php include "../../share/nav-m.php" ?>
			<br/><br/><br/><br/>
<div class="tabbable" id="tabs-780831">
				<div id="cr"></div><br/><br/><br/>
			</div>
		</div>
	</div>
</div>
<?php include "../../share/foot.html" ?>